package com.by.common.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 江俊俊
 * @version 1.0
 * @description
 * @date 2025/2/14 16:45
 * @since JDK1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("分页结果")
public class PageBean<T> {

    @ApiModelProperty("当前页数")
    int page;

    @ApiModelProperty("每页记录数")
    int pageSize;

    @ApiModelProperty("总条数")
    long total;

    @ApiModelProperty("分页返回结果")
    T data;
}
